﻿<%@ Page Title="" Language="C#" MasterPageFile="~/VSVisitante.Master" AutoEventWireup="true" CodeBehind="Matricula.aspx.cs" Inherits="Presentation.Matricula" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <table style="width:100%;">
            <tr>
                <td>
                    <asp:Label ID="lblNome" runat="server" Text="Nome:"></asp:Label>
                    <asp:DropDownList ID="ddlAluno" runat="server" DataSourceID="EntityDataSource3" 
                        DataTextField="RA" DataValueField="ID" Height="16px" style="margin-left: 8px">
                    </asp:DropDownList>
                    <asp:EntityDataSource ID="EntityDataSource3" runat="server" 
                        ConnectionString="name=DBUCNEntities" DefaultContainerName="DBUCNEntities" 
                        EnableFlattening="False" EntitySetName="TBAlunoes" EntityTypeFilter="TBAluno" 
                        Select="it.[RA], it.[ID]">
                    </asp:EntityDataSource>
                    <br />
                    <asp:Label ID="lblCurso" runat="server" Text="Curso:"></asp:Label>
                    <asp:DropDownList ID="ddlCurso" runat="server" DataSourceID="EntityDataSource1" 
                        DataTextField="Nome" DataValueField="Nome" style="margin-left: 9px">
                    </asp:DropDownList>
                    <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
                        ConnectionString="name=DBUCNEntities" DefaultContainerName="DBUCNEntities" 
                        EnableFlattening="False" EntitySetName="TBCursoes" EntityTypeFilter="TBCurso">
                    </asp:EntityDataSource>
                    <asp:Label ID="lblTurma" runat="server" Text="Turma:"></asp:Label>
                    <asp:DropDownList ID="ddlTurma" runat="server" DataSourceID="EntityDataSource2" 
                        DataTextField="Nome" DataValueField="Nome" style="margin-left: 10px">
                    </asp:DropDownList>
                    <asp:EntityDataSource ID="EntityDataSource2" runat="server" 
                        ConnectionString="name=DBUCNEntities" DefaultContainerName="DBUCNEntities" 
                        EnableFlattening="False" EntitySetName="TBTurmas" EntityTypeFilter="TBTurma">
                    </asp:EntityDataSource>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnCadastrar" runat="server" onclick="btnCadastrar_Click" 
                        Text="Cadastrar" />
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    </p>
</asp:Content>
